package com.thekernel.youdaoyun.bean;

import io.swagger.annotations.ApiModel;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author TheKernel
 * @Date 2019/9/13 7:30 下午
 * @Version 1.0
 * @Description 对应数据库中的 star 表
 */
@ApiModel(description = "star")
public class Star implements Serializable {

    private static final long serialVersionUID = 6222176558369919437L;

    private long starId;      // 收藏 id
    private long starNote;    // 收藏对应的 note
    private long starUser;    // 收藏的用户
    private Boolean status;   // 收藏状态(0-已删除, 1-有效)
    private Date createTime;  // 收藏时间

    public long getStarId() {
        return starId;
    }

    public void setStarId(long starId) {
        this.starId = starId;
    }

    public long getStarNote() {
        return starNote;
    }

    public void setStarNote(long starNote) {
        this.starNote = starNote;
    }

    public long getStarUser() {
        return starUser;
    }

    public void setStarUser(long starUser) {
        this.starUser = starUser;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Star{" +
                "starId=" + starId +
                ", starNote='" + starNote + '\'' +
                ", starUser=" + starUser +
                ", status=" + status +
                ", createTime=" + createTime +
                '}';
    }
}
